# a = [1,2,3]
# print(a)
# b = [1,'2',True]
# print(b)
# print(len(b))
# print(b[-1])
# print(a[1:5])
# # for i in range(1,10):
# #     for j in range(1,i):
# #         print(j)

a = [1, 2, 3, 4, 5, 6, 7]
# print(a[::2])
# for i in a:
#     print(i)
# for i in range(0,len(a)):
#     for j in range(0,i):
#         tmp = a[i]
#         a[i] = a[j]
#         a[j] = tmp
#
# a.append(9)
# a.insert(0,29)
# print(a)
# print(10 in a)
# print(a.index(1))
# print(a)
# a.pop()
# print(a)
b = [9, 8, 7, 6, 5, 3, 4, 2, 1]
c = a+b
print(c)
a.extend(b)
print(a)
